﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeighIn.aspx.cs" Inherits="FatFreeFitness._secured.members.WeighIn" masterpagefile="../../_layout/_master/MemberMaster.master" %>
<asp:Content id="Content1" runat="Server" contentplaceholderid="MemberContent">
    <div>
    
        <asp:FormView ID="FormView1" runat="server" DataKeyNames="MemberID,Date" 
            DataSourceID="EntityDsWeighIns" DefaultMode="Insert" 
            onitemcommand="FormView1_ItemCommand" oniteminserted="FormView1_ItemInserted" 
            Width="407px">
            <InsertItemTemplate>
                <br />
                Date:
                <telerik:RadDatePicker ID="RadDatePicker1" Runat="server" Culture="en-US" 
                    DbSelectedDate='<%# Bind("Date") %>'>
                </telerik:RadDatePicker>
                <br />
                Weight:
                <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" 
                    Culture="en-US" DbValue='<%# Bind("Weight") %>' LabelWidth="" 
                    Width="125px" DataType="System.Int32" MinValue="1">
                </telerik:RadNumericTextBox>
                <br />
                <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                    CommandName="Insert" Text="Record Weight" />
&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" 
                    CommandName="Cancel" Text="Cancel" />
            </InsertItemTemplate>
        </asp:FormView>
    
    </div>
    <asp:EntityDataSource ID="EntityDsWeighIns" runat="server" 
        ConnectionString="name=FatFreeFitnessEntities" 
        DefaultContainerName="FatFreeFitnessEntities" EnableFlattening="False" 
        EnableInsert="True" EntitySetName="WeighIns" 
        oninserted="EntityDsWeighIns_Inserted" oninserting="EntityDsWeighIns_Inserting">
        <InsertParameters>
        <mem:MemberIDParameter Name="MemberID" Type="Int32"/>
        </InsertParameters>
    </asp:EntityDataSource>
    </asp:Content>
